#include "classt.h"


Stock::Stock(long stockNum,std::string stockName,double stockPrice)
    :stockNum(stockNum),stockName(stockName),stockPrice(stockPrice){

}

double Stock::sumPrice() const{
    return stockNum*stockPrice;
}


Stock::~Stock(){
    std::cout<<"析构函数被调用"<<std::endl;
}